package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.DataObject;
import edu.washington.tcss360.burningpenguins.data.RecommendationAssignment;

public class RecommendationAssignmentTest 
{

	/** A permission object to use in tests */
	private DataObject my_recommendation_a;
	
	/** Sets up the data object for tests. */
	@Before
	public void setUp() 
	{
		my_recommendation_a = new RecommendationAssignment();
	}

	/** Test setting and getting ID. */
	@Test
	public void testGetId() 
	{
		my_recommendation_a.setId(3);
		assertSame("Incorrect Id", my_recommendation_a.getId(), 3);
	}

	/** Test setting and getting UserID. */
	@Test
	public void testGetUserId() 
	{
		((RecommendationAssignment) my_recommendation_a).setUserId(2);
		assertSame("Incorrect Id", ((RecommendationAssignment) my_recommendation_a).getUserId(), 2);
	}

	/** Test setting and getting PaperID. */
	@Test
	public void testGetPaperId() 
	{
		((RecommendationAssignment) my_recommendation_a).setPaperId(5);
		assertSame("Incorrect Id", ((RecommendationAssignment) my_recommendation_a).getPaperId(), 5);
	}

}
